from rest_framework import serializers
from .models import User

class UserSerializers(serializers.ModelSerializer):
    """
    同样在这里也可以做业务逻辑判断保证业务逻辑从view解耦出去
    关于方法可以看源码即可
    """

    class Meta:
        model  = User
        fields = '__all__'
    
    